package com.huawei.service.impl;

import com.huawei.dao.Shopping_cartMapper;
import com.huawei.entity.Shopping_cart;
import com.huawei.service.Shopping_cartService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @ClassName U
 * @Description TODO
 * @Author 闫修奇
 * @Date 2021/11/27 17:14
 */

 @Service
public class Shopping_cartServiceImpl implements Shopping_cartService {
    @Resource
    Shopping_cartMapper shopping_cartMapper;


    @Override
    public List<Shopping_cart> select(Map<String,Object>pars) {

        return shopping_cartMapper.select(pars);
    }

    @Override
    public int count(Map<String,Object>pars) {
        return shopping_cartMapper.count(pars);
    }

    @Override
    public int add(Shopping_cart shopping_cart) {

        return shopping_cartMapper.add(shopping_cart);
    }

   @Override
    public int update(Shopping_cart shopping_cart) {

            return shopping_cartMapper.update(shopping_cart);

    }

    @Override
    public int delete(int gwc_id) {
        return shopping_cartMapper.delete(gwc_id);
    }

}
